<template>
	<view class="Menu">
		<!-- 导航条 :style="{ height: $wanlshop.wanlsys().height + 'px' }"-->
		<view class="cu-custom">
			<view class="cu-bar fixed bg-bgcolor"
				:style="{height: $wanlshop.wanlsys().height + 'px',paddingTop: $wanlshop.wanlsys().top + 'px',}">
				<view class="action">
					<text class="wlIcon-fanhui1" style="margin-left: 0" @tap="$wanlshop.back(1)"></text>
				</view>
				<view class="content" :style="{ top: $wanlshop.wanlsys().top + 'px' }">
					提取记录
				</view>

				<view class="action">
					<text class="wlIcon-gengduo" @tap="showModal('share')"></text>
				</view>
			</view>
		</view>
		<z-paging ref="paging" v-model="dataList" class="listbox" @query="getDataList" default-page-size="15">
			<view class="orderList" v-for="(item,index) in dataList" :key="index">
				<view class="listT">
					<view class="name">
						提取金额：{{item.amount}}
					</view>
					<!-- <view v-if='item.pay_type=="2"'>
						<view v-if='item.status!=="0"'>{{item.re_money}}</view>
					</view> -->
				</view>
				<view class="listc">
					<view>手续费：{{item.fee}}</view>
				</view>
				<view class="listc">
					<view>钱包地址：{{item.wallet_address}}</view>
				</view>
				<view class="listb">
					<view>
						<view v-if="item.status=='0'">申请中</view>
						<view v-else-if="item.status=='1'">申请成功</view>
						<view v-else-if="item.status=='2'">已拒绝</view>
						<view v-else-if="item.status=='3'">提取成功</view>
						<view v-else-if="item.status=='4'">提取失败</view>
					</view>
				</view>
			</view>
		</z-paging>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				dataList: [],
			};
		},
		methods: {
			//xt 积分记录
			getDataList(pageNo, pageSize) {
				uni.request({
					url: "/wanlshop/otc/my/extractionRecord",
					method: "POST",
					data: {
						page: pageNo
					},
					// 1.1.8 升级
					success: (res) => {
						if (res.res.code == 1) {
							this.$refs.paging.complete(res.res.data);
						}
					},
					fail() {
						this.$refs.paging.complete(false);
					}
				});
			},

		}
	};
</script>

<style lang="scss">
	.Menu {
		background: #f8f8f8;

		.cardBox {
			padding: 0 24rpx;
		}


		.listbox {
			padding: 0 24rpx;
			margin-top: 34rpx;

			.orderList {
				padding: 34rpx 30rpx;
				background: #fff;
				border-radius: 16rpx;
				margin-bottom: 20rpx;

				.listT,
				.listc,
				.listb {
					display: flex;
					align-items: center;
					justify-content: space-between;
				}

				.listc,
				.listb {
					margin-top: 20rpx;
				}

				.listT {
					ont-size: 28rpx;
					color: #666666;
					line-height: 36rpx;

					.name {
						font-weight: 500;
						font-size: 32rpx;
						color: #FC5351;
						line-height: 36rpx;

						span {
							margin-left: 10rpx;
						}
					}
				}

				.listc {
					font-weight: 400;
					font-size: 24rpx;
					color: #999999;
					line-height: 36rpx;
				}

				.listb {
					font-size: 28rpx;
					color: #FC5351;
					line-height: 36rpx;
					font-weight: 400;

					.name {
						color: #333333;
					}

					.Deal {
						background: #FC5351;
						border-radius: 4rpx;
						padding: 10rpx 32rpx;
						color: #fff;

					}
				}
			}

		}
	}
</style>